Maple, which gave me this:
\[ \begin{align} P_{dQ=0} &= \textrm{Roots}\left[f(y)\right],\ f(y)=\sum_{n=0}^4 c_n y^n \\ c_4 &= a^2\gamma ^{2}+2a^2\gamma +a^2\\ c_3 &= -2a^2P_{0}\gamma ^{2}-6a^2P_{0}\gamma -4a^2P_{0}\\ c_2 &= a^2P_{0}^{2}\gamma ^{2}+6a^2P_{0}^{2}\gamma -2a^2b^2\gamma +6a^2P_{0}^{2}+b^2V_{0}^{2}-2a^2b^2\\ c_1 &= -2a^2P_{0}^{3}\gamma +2a^2b^2P_{0}\gamma -4a^2P_{0}^{3}-2b^2P_{0}V_{0}^{2}+4a^2b^2P_{0}\\ c_0 &= a^2P_{0}^{4}+b^2P_{0}^{2}V_{0}^{2}-2a^2b^2P_{0}^{2}-b^4V_{0}^{2}+a^2b^4 \end{align} \]
I've checked this (numerically); its complexity is an indication that what we're doing here is somewhat unphysical — more on that later. Once we've found the root of the quartic polynomial above, we can retrieve the necessary 'angles' for our integral for \( Q_{in} \):
\[ \theta=\textrm{atan2}\left(\frac{-(P-P_0)}{b},\frac{V-V_0}{a}\right) \]
Interestingly, there are actually conditions in which the sign of \( dQ/d\theta \) changes four times (we are dealing with a quartic, after all), but these only happen when the cycle is very close to one of the axes.
We choose \( P_0=2 \), \( V_0=3 \), \( a=2 \), \( b=1 \), \( f=3\implies \gamma=\frac{5}{3} \), and \( n=R=1 \). Then our roots are:
\[\begin{align} P_{dQ=0}&=\textrm{Roots}\left[ \frac{256}{9}y^4-\frac{1408}{9}y^3 + \frac{2593}{9}y^2 - 212y + 63 \right] = \{1.8342, 2.4950\} \\ \implies (\theta_1, \theta_2) &= (2.9750\ \textrm{rad}, 5.7654\ \textrm{rad}) \end{align} \]
Using these values, we determine:
\[ \begin{align} Q_{in}&=\int_{\theta_1}^{\theta_2} \left[\frac{5}{3}(2-\sin\theta)(-2\sin\theta)+(3+2\cos\theta)(-\cos\theta)\right] dt = 25.381 \\ W&=-2\pi=-6.2832 \\ \eta &= \left|\frac{W}{Q_{in}}\right|=0.24756 \end{align} \]
So the efficiency of this elliptical cycle is about 25%! For reference, the Carnot efficiency of this cycle is roughly 85%.
There isn't much we can do with an ideal gas. Our options are:
1 and 2 contain all of the 'classic' quasistatic processes you'll see in a textbook (isothermal, adiabatic, etc.). However, they are practically impossible to do in the real world. Real processes (e.g. those in actual engines) can only be accurately described by 3. Additionally, faster processes are (typically) less quasi-static, and it is difficult to justify approximating them with a single line on a PV diagram.
This is why introductory thermodynamics classes only concern themselves with those few traditional processes: if your path isn't one of them, you're probably not dealing with a quasi-static system. However, we can still put sensors in an engine and make PV diagrams using the resulting data. And actually, these diagrams tend to resemble elliptical blobs more than their angular, ideal counterparts.
Practically, you can expect these diagrams are analyzed with numeric methods, and that efficiencies can be calculated directly from fuel intake and power output. But it's still fun to consider the analytical side of things occasionally!
Previous Post: